package com.hsogoo.avatar.registry;

import java.util.Set;

/**
 * @Author huangsaigang
 * Created @2018/9/25.
 */
public interface AvatarRegistry {

    void connectToRegistryServer(String connectString);

    void register(RegisterMeta registerMeta);

    void subscribe(ServiceMeta serviceMeta);

    Set<RegisterMeta> lookup(ServiceMeta serviceMeta);

    enum RegisterState {
        PREPARE,
        DONE
    }

}
